package com.info.zhiduoduo.common.configs;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

@Component
@ConfigurationProperties
@PropertySource("classpath:zdd-pay.properties")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)  //setter return this;
@ToString
public class PayConfig {

	private String singlePayUrl;
	private String querySinglePayUrl;
	private String singleWithdrawUrl;
	private String querySingleWithdrawUrl;
	private String batchPayUrl;
	private String queryBatchPayUrl;
	private String batchItemRepayUrl;
	private String queryItemRepayUrl;
	private String addMerchantUrl;
	private String queryMerchantUrl;
	private String queryAccountInfoUrl;
	private String createOfflineRechargeUrl;
	private String queryOfflineRechargeUrl;
	private String notifyOfflineRechargeUrl;
	private String wxpayUrl;
	private String daysAgentPayUrl;
	private String daysQueryAgentPayUrl;
	private String dayQueryMerchantBalanceUrl;
	private String transferAgentPayUrl;
	private String transferQueryAgentPayUrl;
	private String transferQueryMerchantBalanceUrl;
	private String zhaoShangAgentPayUrl;
	private String zhaoShangQueryAgentPayUrl;
	private String zhaoShangQueryBalanceUrl;
	private String zhaoShangQueryOutlineUrl;
	private String aliPayTransferUrl;
	private String aliPayTransferQueryUrl;
	private String aliPayAccountQueryUrl;
	private String pinganBalanceQueryUrl;
	private String pinganSingleTransferUrl;
	private String pinganSingleTransferQueryUrl;
	private String pinganBatchTransferUrl;
	private String pinganBatchTransferQueryUrl;

	/** 创建记账子单元 =/zhaoshangTradeBulter/createSubLedger */
	private String zhaoShangCreateSubLedgerUrl;
	/** 记账子单元余额查询 =/zhaoshangTradeBulter/querySubLedgerBalance */
	private String zhaoShangQuerySubLedgerBalanceUrl;
	/** 记账子单元信息状态查询 =/zhaoshangTradeBulter/querySubLedgerStatus */
	private String zhaoShangQuerySubLedgerStatusUrl;
	/** 记账子单元内部转账 =/zhaoshangTradeBulter/subLedgerPay */
	private String zhaoShangSubLedgerPayUrl;
	/** 记账子单元退款经办 =/zhaoshangTradeBulter/subLedgerRefund */
	private String zhaoShangSubLedgerRefundUrl;
	/** 当日交易记录 =/zhaoshangTradeBulter/querySubLedgerTodayTrade */
	private String zhaoShangQuerySubLedgerTodayTradeUrl;
	/** 当日交易记录 =/zhaoshangTradeBulter/querySubLedgerHistoryTrade */
	private String zhaoShangQuerySubLedgerHistoryTradeUrl;
	private Map<String, String> payFailedNotifyOpenids = new HashMap<>();
}
